<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <button>你过来呀！</button>
</body>
<script>
    document.querySelector("button").onclick = function(){
		console.log(1)
    }
</script>
</html>